<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" errorPage="/error.jsp" isELIgnored="false" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib uri="http://atleap.blandware.com/taglib" prefix="atleap" %>
<html:xhtml />


<atleap:constants className="com.blandware.atleap.webapp.util.core.WebappConstants" scope="page" var="CONTENT_LOCALES_COLLECTION_KEY" />
<atleap:constants className="com.blandware.atleap.webapp.util.core.WebappConstants" var="HTML_TEXT_FIELD_MAX_LENGTH" />
<atleap:javascript formName="contentLocaleForm" staticJavascript="false" dynamicJavascript="true" method="validateForm" cdata="false" />
<atleap:content identifier="information" ignore="true" uri="/core/contentLocale/callCreate"/>
<atleap:messages property="contentLocaleAlreadyExists" />
<atleap:form action="core/contentLocale/create" method="POST">
    <table cellpadding="0"  cellspacing="0" border="0" class="modificationTable">
        <tr>
            <th>
                <atleap:message key="core.contentLocale.form.selectLanguage" />
            </th>
            <td>
                <html:select property="identifier">
					<html:option value="ab">Abkhazian</html:option>
					<html:option value="aa">Afar</html:option>
					<html:option value="af">Afrikaans</html:option>
					<html:option value="sq">Albanian</html:option>
					<html:option value="am">Amharic</html:option>
					<html:option value="ar">Arabic</html:option>
					<html:option value="hy">Armenian</html:option>
					<html:option value="as">Assamese</html:option>
					<html:option value="ay">Aymara</html:option>
					<html:option value="az">Azerbaijani</html:option>
					<html:option value="ba">Bashkir</html:option>
					<html:option value="eu">Basque</html:option>
					<html:option value="bn">Bengali</html:option>
					<html:option value="dz">Bhutani</html:option>
					<html:option value="bh">Bihari</html:option>
					<html:option value="bi">Bislama</html:option>
					<html:option value="br">Breton</html:option>
					<html:option value="bg">Bulgarian</html:option>
					<html:option value="my">Burmese</html:option>
					<html:option value="be">Byelorussian</html:option>
					<html:option value="km">Cambodian</html:option>
					<html:option value="ca">Catalan</html:option>
					<html:option value="zh">Chinese</html:option>
					<html:option value="co">Corsican</html:option>
					<html:option value="hr">Croatian</html:option>
					<html:option value="cs">Czech</html:option>
					<html:option value="da">Danish</html:option>
					<html:option value="nl">Dutch</html:option>
					<html:option value="en">English</html:option>
					<html:option value="eo">Esperanto</html:option>
					<html:option value="et">Estonian</html:option>
					<html:option value="fo">Faroese</html:option>
					<html:option value="fj">Fiji</html:option>
					<html:option value="fi">Finnish</html:option>
					<html:option value="fr">French</html:option>
					<html:option value="fy">Frisian</html:option>
					<html:option value="gl">Galician</html:option>
					<html:option value="ka">Georgian</html:option>
					<html:option value="de">German</html:option>
					<html:option value="el">Greek</html:option>
					<html:option value="kl">Greenlandic</html:option>
					<html:option value="gn">Guarani</html:option>
					<html:option value="gu">Gujarati</html:option>
					<html:option value="ha">Hausa</html:option>
					<html:option value="he">Hebrew</html:option>
					<html:option value="hi">Hindi</html:option>
					<html:option value="hu">Hungarian</html:option>
					<html:option value="is">Icelandic</html:option>
					<html:option value="id">Indonesian</html:option>
					<html:option value="ia">Interlingua</html:option>
					<html:option value="ie">Interlingue</html:option>
					<html:option value="iu">Inuktitut</html:option>
					<html:option value="ik">Inupiak</html:option>
					<html:option value="ga">Irish</html:option>
					<html:option value="it">Italian</html:option>
					<html:option value="ja">Japanese</html:option>
					<html:option value="jw">Javanese</html:option>
					<html:option value="kn">Kannada</html:option>
					<html:option value="ks">Kashmiri</html:option>
					<html:option value="kk">Kazakh</html:option>
					<html:option value="ky">Kirghiz</html:option>
					<html:option value="rn">Kirundi</html:option>
					<html:option value="rw">Kiyarwanda</html:option>
					<html:option value="ko">Korean</html:option>
					<html:option value="ku">Kurdish</html:option>
					<html:option value="lo">Laotian</html:option>
					<html:option value="la">Latin</html:option>
					<html:option value="lv">Latvian</html:option>
					<html:option value="ln">Lingala</html:option>
					<html:option value="lt">Lithuanian</html:option>
					<html:option value="mk">Macedonian</html:option>
					<html:option value="mg">Malagasy</html:option>
					<html:option value="ms">Malay</html:option>
					<html:option value="ml">Malayalam</html:option>
					<html:option value="mt">Maltese</html:option>
					<html:option value="mi">Maori</html:option>
					<html:option value="mr">Marathi</html:option>
					<html:option value="mo">Moldavian</html:option>
					<html:option value="mn">Mongolian</html:option>
					<html:option value="na">Nauru</html:option>
					<html:option value="ne">Nepali</html:option>
					<html:option value="no">Norwegian</html:option>
					<html:option value="oc">Occitan</html:option>
					<html:option value="or">Oriya</html:option>
					<html:option value="om">Oromo</html:option>
					<html:option value="ps">Pashto</html:option>
					<html:option value="fa">Persian</html:option>
					<html:option value="pl">Polish</html:option>
					<html:option value="pt">Portuguese</html:option>
					<html:option value="pa">Pundjabi</html:option>
					<html:option value="qu">Quechua</html:option>
					<html:option value="rm">Rhaeto-Romance</html:option>
					<html:option value="ro">Romanian</html:option>
					<html:option value="ru">Russian</html:option>
					<html:option value="sm">Samoan</html:option>
					<html:option value="sg">Sangho</html:option>
					<html:option value="sa">Sanskrit</html:option>
					<html:option value="gd">Scots</html:option>
					<html:option value="sr">Serbian</html:option>
					<html:option value="sh">Serbo-Croatian</html:option>
					<html:option value="st">Sesotho</html:option>
					<html:option value="tn">Setswana</html:option>
					<html:option value="sn">Shona</html:option>
					<html:option value="sd">Sindhi</html:option>
					<html:option value="si">Singhalese</html:option>
					<html:option value="ss">Siswati</html:option>
					<html:option value="sk">Slovak</html:option>
					<html:option value="sl">Slovenian</html:option>
					<html:option value="so">Somali</html:option>
					<html:option value="es">Spanish</html:option>
					<html:option value="su">Sudanese</html:option>
					<html:option value="sw">Swahili</html:option>
					<html:option value="sv">Swedish</html:option>
					<html:option value="tl">Tagalog</html:option>
					<html:option value="tg">Tajik</html:option>
					<html:option value="ta">Tamil</html:option>
					<html:option value="tt">Tatar</html:option>
					<html:option value="te">Telugu</html:option>
					<html:option value="th">Thai</html:option>
					<html:option value="bo">Tibetan</html:option>
					<html:option value="ti">Tigrinya</html:option>
					<html:option value="to">Tonga</html:option>
					<html:option value="ts">Tsonga</html:option>
					<html:option value="tr">Turkish</html:option>
					<html:option value="tk">Turkmen</html:option>
					<html:option value="tw">Twi</html:option>
					<html:option value="ug">Uigur</html:option>
					<html:option value="uk">Ukrainian</html:option>
					<html:option value="ur">Urdu</html:option>
					<html:option value="uz">Uzbek</html:option>
					<html:option value="vi">Vietnamese</html:option>
					<html:option value="vo">Volapuk</html:option>
					<html:option value="cy">Welsh</html:option>
					<html:option value="wo">Wolof</html:option>
					<html:option value="xh">Xhosa</html:option>
					<html:option value="yi">Yiddish</html:option>
					<html:option value="yo">Yorouba</html:option>
					<html:option value="za">Zhuang</html:option>
					<html:option value="zu">Zulu</html:option>
                </html:select>
            </td>
        </tr>
		<tr>
			<td colspan="2" align="center">
				<atleap:label property="title" key="core.contentLocale.form.title" colon="false" helpTip="true" />
			</td>
		</tr>
		<tr>
			<th>
				<div class="languageField">
					<atleap:message key="core.contentLocale.form.language" />:&nbsp;<atleap:message key="core.contentLocale.form.currentLanguage" />
				</div>
			</th>
			<td>
				<html:text property="title(current)" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}" styleClass="text" />
			</td>
		</tr>
		<atleap:iterator items="${sessionScope[pageScope.CONTENT_LOCALES_COLLECTION_KEY]}" var="contentLocale">
			<tr>
				<th>
					<div class="languageField">
						<atleap:fieldValue valueMap="${contentLocale.title}" var="languageTitle" />
						<c:if test="${empty languageTitle}">
							<c:set var="languageTitle" value="${contentLocale.identifier}" />
						</c:if>
						<atleap:message key="core.contentLocale.form.language" />:&nbsp;${languageTitle}
					</div>
				</th>
				<td>
					<html:text property="title(${contentLocale.identifier})" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}" styleClass="text" />
				</td>
			</tr>
		</atleap:iterator>
	</table>
    <atleap:submit styleClass="button"><atleap:message key="core.commons.buttons.create" /></atleap:submit>
    <atleap:cancel styleClass="button"><atleap:message key="core.commons.buttons.cancel" /></atleap:cancel>
</atleap:form>





